package com.ruirui.demo.jingdu;

import com.ruirui.demo.interfaceAndAbs.abshh;

import java.math.BigDecimal;

public class BigDecimalAndDouble {
    public static void main(String[] args) {
        double a = 0.01;
        double b = 0.09;
        double c = a + b;
        BigDecimal aa = new BigDecimal("0.01");
        BigDecimal bb = new BigDecimal("0.09");
        BigDecimal cc = aa.add(bb);
        System.out.println(cc);
        System.out.println(c);
        abshh hh = new abshh() {
            @Override
            public void show() {

            }

            @Override
            public void show2() {

            }

            @Override
            public void show3() {

            }

            @Override
            public void show4() {

            }
        };
    }
}
